<?php
/**
 * 基础验证
 * Date: 2021/10/13
 */

namespace app\api\validate;
use think\Validate;
class Test extends Validate{
    // 需要验证的字段
    protected $rule = [
        'name'=>['require','alphaDash','length:5,50'],
        'page'=>['require','alphaDash','length:5,50'],
        'limit'=>['require','alphaDash','length:5,50'],
        'type'=>['require','alphaDash','length:5,50'],
    ];
    // 对应的提示
    protected $message =[

    ];
    // 自定义方法

    // 验证场景
    protected $scene = [
        'sign_in' => ['user_number','user_pass'],
    ];
}
